package com.wu.crud.service;

import com.wu.crud.bean.SuperAdmin;
import com.wu.crud.dao.SuperAdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SuperAdminService {
    @Autowired
    SuperAdminMapper superAdminMapper;

    /**
     * 管理员登录
     * @param id
     * @param password
     * @return
     */
    public SuperAdmin login(String id, String password){
        return superAdminMapper.selectByIdAndPassword(id, password);
    }
}
